import Widget from require "lapis.html"
class UserList extends  Widget
  content: =>
    h2 "List"
    ul
    for i,user in ipairs(@users)
        h3  user.name
        for k,v in pairs(user)
            li -> 
                h5 k.."--------"..v
        h3 ->   
            a href:"/user/login/", "new"
        h3 ->   
            a href:"/user/edit/"..user.id, "edit"
        h3 ->   
            a href:"/user/delete/"..user.id, "delete"
